package com.yxym.homework06;

public class CheckingAccount extends BankAccount{
    //属性
    public CheckingAccount(int initialBalance) {
        super(initialBalance);
    }

    @Override
    public void deposit(double amount) {//存款
        super.deposit(amount - 1);//使用父类的deposit方法
        //1 块钱转入银行的账号
    }

    @Override
    public void withdraw(double amount) {//取款
        super.withdraw(amount + 1);
        //1 块钱转出银行的账号
    }
}
